﻿using CTP.CRM.Core.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CTP.CRM.Application.Dtos.User.Input
{
    public class WriteLoginLogEvent
    {
        public WriteLoginLogEvent(LoginMode loginMode
            , int userId
            , string content)
        {
            this.UserId = userId;
            this.Content = content;
            this.LoginMode = loginMode;
            this.CreateTime = DateTime.Now;
        }

        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; }

        /// <summary>
        /// 登录方式
        /// </summary>
        public LoginMode LoginMode { get; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; }
    }
}
